import { request } from '../request.js'
const integral = {
	// 首页列表
	index (params) {
	  return request({
	    method: 'Get',
	    url: '/api/goods/front/goodsPoint/selectList',
	  })
	},
	// 我的积分
	mypoints (params) {
	  return request({
	    method: 'Get',
	    url: '/api/uac/front/memberPoint/selectPointList',
	  })
	},
	// 兑换积分
	exchange (params) {
	  return request({
	    method: 'Post',
	    url: '/api/order/front/orderPoint/exchange',
		params:params
	  })
	},
	// 兑换积分商品列表
	list (params) {
	  return request({
	    method: 'Get',
	    url: '/api/order/front/orderPoint/list',
		params:params
	  })
	},
	// 兑换规则
	rule (params) {
	  return request({
	    method: 'Get',
	    url: '/api/cms/front/agreement/getByCode/'+params
	
	  })
	},
	
	
	
	}
export default integral